package org.jeecg.modules.crawlerpaper.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: crawler_info
 * @Author: jeecg-boot
 * @Date:   2021-07-22
 * @Version: V1.0
 */
@Data
@TableName("crawler_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="crawler_info对象", description="crawler_info")
public class CrawlerInfo {

	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**sourceName*/
	@Excel(name = "来源", width = 15)
    @ApiModelProperty(value = "sourceName")
	private String sourceName;

	@Excel(name = "版面", width = 15)
	private  String layout;
	/**scoureUrl*/
	@Excel(name = "版面链接", width = 15)
    @ApiModelProperty(value = "scoureUrl")
	private String scoureUrl;
	/**articleUrl*/
	@Excel(name = "文章链接", width = 15)
    @ApiModelProperty(value = "articleUrl")
	private String articleUrl;
	/**articleName*/
	@Excel(name = "文章名称", width = 15)
    @ApiModelProperty(value = "articleName")
	private String articleName;
	/**articleContent*/
	//@Excel(name = "articleContent", width = 15)
    @ApiModelProperty(value = "articleContent")
	private Object articleContent;
	/**articleTime*/
	@Excel(name = "时间", width = 15)
    @ApiModelProperty(value = "articleTime")
	private String articleTime;
	/**createTime*/
	//@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	@TableField(exist = false)
	private  String  startTime;
	@TableField(exist = false)
	private  String endTime;

	@Override
	public String toString() {
		return "CrawlerInfo{" +
				"id='" + id + '\'' +
				", sourceName='" + sourceName + '\'' +
				", layout='" + layout + '\'' +
				", scoureUrl='" + scoureUrl + '\'' +
				", articleUrl='" + articleUrl + '\'' +
				", articleName='" + articleName + '\'' +
				", articleContent=" + articleContent +
				", articleTime='" + articleTime + '\'' +
				", createTime=" + createTime +
				'}';
	}
}
